extends Control


func _on_瞄准_pressed():
	ObjectManager.soundManager.play(SoundType.button_click)
	if !GameUtils.checkIsReadyAction() || !GameUtils.checkActionEnough(SpendData.COST_狙炮_AIM):
		return
	ObjectManager.gameManager.operationManager.changeOperationType(OperationType.狙炮_aim)
	visible = false
	ObjectManager.gameManager.ui.closeDesc()


func _on_瞄准_mouse_entered():
	var ui = ObjectManager.gameManager.ui as UI
	ui.wantShowDesc("瞄准：消耗1点能量，选择落点，下回合开始时发送炮弹远程攻击，每回合只能开一炮")


func _on_mouse_exited():
	var ui = ObjectManager.gameManager.ui as UI
	ui.closeDesc()
